module.exports = app => {
    const { STRING, INTEGER, TEXT, DOUBLE, DATE } = app.Sequelize;
    const Content = app.model.define('cats', {
        catId: { type: INTEGER, primaryKey: true, autoIncrement: true },
        pid: INTEGER,
        uid: INTEGER,
        catName: STRING,
        catImg: STRING,
        type: STRING,
        isShow: {
            type: INTEGER,
            defaultValue: 1,
            comment: "1展示 0 不展示 "
        },
        dataFlag: {
            type: INTEGER,
            defaultValue: 1,
            comment: "1正常 0 删除 "

        },
        catSort: INTEGER,
        created_at: DATE,
        updated_at: DATE,
    });
    return Content;
};